
#include "./inc/imgcv.h"
#include <string>
#include <iostream>



int main01(int argc, char** argv )
{
    if(argc < 2)
    {
        perror("para error;please input two para\n");
        return 0;
    }
    std::string str = argv[1];
    if(str == "_01")
    {
        test_01();
    }
    else if(str == "_02")
    {
        test_02();
    }
    else if(str == "_03")
    {
        test_03();
    }
    else if(str == "_04")
    {
        test_04();
    }
    else if(str == "_05")
    {
        test_05();
    }
    else if(str == "_06")
    {
        test_06();
    }
    else if(str == "_07")
    {
        test_07();
    }
    else if(str == "_08")
    {
        test_08();
    }
    else if(str == "_09")
    {
        test_09();
    }
    else if(str == "_10")
    {
        test_10();
    }
    else if(str == "_11")
    {
        test_11();
    }
    else if(str == "_12")
    {
        test_12();
    }
    return 0;
}




int  main(int argc, char** argv)
{
    if(argc < 2)
    {
        std::cout << "para error !!!" << std::endl;
        return 0;
    }
    std::string name = argv[1];
    if(name[0] == '1')
    {
        if(name[1] == '.')
            first_option(name);
        else if(name[1] == '0')
            tenty_option(name);
        else if(name[1] == '1')
            elentty_option(name);
        else if(name[1] == '2')
            shierty_option(name);
        else if(name[1] == '3')
            shisanty_option(name);
    }
    else if (name[0] == '2')
    {
        secend_option(name);  
    }
    else if (name[0] == '3')
    {
        third_option(name);
    }
    else if (name[0] == '4')
    {
        fourty_option(name);
    }
    else if (name[0] == '5')
    {
        fivety_option(name);
    }
    else if (name[0] == '6')
    {
        sixty_option(name);
    }
    else if (name[0] == '7')
    {
        eventty_option(name);
    }
    else if (name[0] == '8')
    {
        eightty_option(name);
    }
    else if (name[0] == '9')
    {
        ninety_option(name);
    }
    else if(name[0] == '_')
    {
        main01(2,argv);
    }
    

    return 0;
}